package com.example.demo.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单账单表-m-
 * </p>
 *
 * @author huamq
 * @since 2021-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_stages")
@ApiModel(value="Stages对象", description="订单账单表-m-")
public class Stages implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid", type = IdType.AUTO)
    private Integer uuid;

    @ApiModelProperty(value = "订单号  (关联订单表order_id)")
    private String orderId;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "租期")
    private String tenancyTerm;

    @ApiModelProperty(value = "当前期数")
    private Integer currentTenancyTerm;

    @ApiModelProperty(value = "月租（每月价格）")
    private Double monthlyRent;

    @ApiModelProperty(value = "应付金额")
    private BigDecimal totalPay;

    @ApiModelProperty(value = "已付金额（一共付了多少钱）")
    private Double paidMonthlyRent;

    @ApiModelProperty(value = "还款时间（每月还款时间 ）")
    private String repaymentTime;

    @ApiModelProperty(value = "实际还款时间")
    private LocalDateTime lastRepaymentTime;

    @ApiModelProperty(value = "结余（剩多少钱没还）")
    private Double balance;

    @ApiModelProperty(value = "逾期天数")
    private String daysOverdue;

    @ApiModelProperty(value = "逾期金额")
    private Double amountOverride;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "意外保障费用")
    private Double orderGoodsInsurance;

    @ApiModelProperty(value = "安装包金额（商品表安装包金额）")
    private Double goodsInstallationCharge;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "优惠券减免金额")
    private Double couCreditAmount;

    @ApiModelProperty(value = "我的优惠券表id")
    private Integer couOnleId;

    @ApiModelProperty(value = "分期状态：1待还款 2已还款  3逾期中 4异常退货")
    private Integer fqStatus;

    @ApiModelProperty(value = "是否是买断账单 1不是  2是（买断账单收服务费）")
    private Integer ztwStatus;

    @ApiModelProperty(value = "资金流水号，用于商户与支付宝进行对账")
    private String alipayFundOrderNo;

    @ApiModelProperty(value = "第三方单号")
    private String outOrderId;

    @ApiModelProperty(value = "账单支付方式 1代扣  2主动还款  3两种都可以")
    private Boolean orderStagesPay;

    @ApiModelProperty(value = "是否已提现 1已提现")
    private Boolean finStatus;

    @ApiModelProperty(value = "提现时间")
    private LocalDateTime finTime;

    private Integer finId;

    private Boolean erStatus;
    private Boolean hasSync;


}
